<?php

    #-------------------------------------------------------------#
	# This file is part of the Tekuna MVC Microframework for PHP. #
	# (c) 2009 Niels Jäckel <niels.jaeckel@tekuna.org>            #
	# Please visit http://tekuna.org/ for more information.       #
	#                                                             #
	# This software is licensed under the MIT License. Please     #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#


	Tekuna :: load('org.tekuna.core.application.TekunaApplicationContext');


	/**
	 * Interface for all controllers that can be handled by a TekunaApplication.
	 */

	interface TekunaController {


		/**
		 * Constructor definition for controllers. The application context
		 * is given and should be stored internally to be used in the getOutput()
		 * method.
		 *
		 * @param TekunaApplicationContext $objContext
		 */

		public function __construct(TekunaApplicationContext $objContext);


		/**
		 * This method produces the output that is filled into the
		 * template slot of the surrounding component.
		 *
		 * @return string the output
		 */

		public function getOutput();
	}

